package com.pmcc.cj.entity;

import com.pmcc.core.entity.UUIDEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用于关联零售商与村名称
 * 县级代理与县名称
 * 一个村只能查到一个零售商
 * 一个县只能查到一个代理商
 * Created by tomas on 2020/10/10.
 */
@Entity
@Table(name = "cj_county_village")
public class CjCountyVillage extends UUIDEntity {
    //0：零售商   1：代理商
    @Column(name = "fettle")
    private Integer fettle;
    //客户id
    @Column(name = "customer_id")
    private String customerId;
    //村名称或者县名称
    @Column(name = "address")
    private String address;
    @Column(name = "province")
    private String province;//省
    @Column(name = "city")
    private String city;//市
    @Column(name = "county")
    private String county;//县
    @Column(name = "township")
    private String township;//乡
    @Column(name = "village")
    private String village;//村

    public Integer getFettle() {
        return fettle;
    }

    public void setFettle(Integer fettle) {
        this.fettle = fettle;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getTownship() {
        return township;
    }

    public void setTownship(String township) {
        this.township = township;
    }

    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
